package com.github.iot.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 柜门命令设置
 *
 * @Author: 梁声洪
 * @Date: 2019/12/23 22:14
 * @Version: v1.0.0
 */
@Entity
public class DoorCommand {

    /**
     * 主键ID
     */
    @Id(autoincrement = true)
    private Long id;

    /**
     * 关闭按钮按下指令
     */
    @NotNull
    private byte[] downClose;

    /**
     * 关闭按钮松开指令
     */
    @NotNull
    private byte[] upClose;

    /**
     * 打开按钮按下指令
     */
    @NotNull
    private byte[] downOpen;

    /**
     * 打开按钮松开指令
     */
    @NotNull
    private byte[] upOpen;

    @Generated(hash = 1394191914)
    public DoorCommand(Long id, @NotNull byte[] downClose, @NotNull byte[] upClose,
            @NotNull byte[] downOpen, @NotNull byte[] upOpen) {
        this.id = id;
        this.downClose = downClose;
        this.upClose = upClose;
        this.downOpen = downOpen;
        this.upOpen = upOpen;
    }

    @Generated(hash = 868285339)
    public DoorCommand() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public byte[] getDownClose() {
        return this.downClose;
    }

    public void setDownClose(byte[] downClose) {
        this.downClose = downClose;
    }

    public byte[] getUpClose() {
        return this.upClose;
    }

    public void setUpClose(byte[] upClose) {
        this.upClose = upClose;
    }

    public byte[] getDownOpen() {
        return this.downOpen;
    }

    public void setDownOpen(byte[] downOpen) {
        this.downOpen = downOpen;
    }

    public byte[] getUpOpen() {
        return this.upOpen;
    }

    public void setUpOpen(byte[] upOpen) {
        this.upOpen = upOpen;
    }

}